import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.get("http://47.96.100.253/robot-script/views/login.html")

driver.find_element_by_xpath('//*[@id="LAY-user-login-username"]').send_keys("xmwjw")
driver.find_element_by_xpath('//*[@id="LAY-user-login-password"]').send_keys("123456")
driver.find_element_by_xpath('//*[@id="loginBtn"]').click()

time.sleep(2)

while True:
    driver.get("http://47.96.100.253/robot-script/views/#/MmTaskRg/list")
    time.sleep(5)
    driver.find_element_by_xpath('/html/body/div[1]/div/div[3]/div/div[2]/div/div[1]/div/div/button[2]').click()
    time.sleep(5)
    driver.get("http://47.96.100.253/robot-script/views/#/RobotVote/list")
    time.sleep(5)
    driver.find_element_by_xpath('/html/body/div[1]/div/div[3]/div/div[2]/div/div[1]/div/div[6]/button').click()
    time.sleep(5)
